package com.example.demo.demos.rest;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

@Service
public class WeatherService {

    @Tool(description = "Get weather information by city name")
    public String getWeather(String cityName) {
        // Implementation  调用天气服务
        return cityName + "今天气温" + System.currentTimeMillis();
    }
}